<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>javascript</title>
    <script src="vite-project/node_modules/vue/dist/vue.global.js"></script>
</head>

<body>
    <script type="text/javascript">
        for (let i = 0; i <
            10; i++) {
            document.write("Hello <br>");
        }

        var n = 10;
        while (n--) {
            document.write("wdf <br>");
        }
        //do while 会写了就不写了（

        var users = [{
            name: "第一个名字",
            age: 114514
        }, {
            name: "第二个名字",
            age: 666
        }];
        for (let x of users) {
            document.write(x.name + "-" + x.age + "<br>");
        }
        document.write("<br>");
        var user = {
            name: "千恋万花",
            age: 18,
            type: "射击类游戏"
        }
        document.write("<br>");
        for (let x in user) {
            document.write(x + ":" + user[x] + "<br>");
        }
        document.write("<br>");
        for (let x of users) {
            for (let y in x) {
                document.write(y + ":" + x[y] + "<br>");
            }
            document.write("<br>");
        }
    </script>
</body>

</html>